import Vue from 'vue'
import Router from 'vue-router'
import Sellform from '@/components/sellform/Sellform'
import AddSellform from '@/components/sellform/AddSellform'
import ViewSellform from '@/components/sellform/ViewSellform'
import Test from '@/components/Test'
import SendCar from '@/components/sellform/SendCar'
import EditLine from '@/components/sellform/EditLine'
import SellFinalSure from '@/components/sellform/SellFinalSure'
import OutStoreRoom from '@/components/sellform/OutStoreRoom'
import SellDispatch from '@/components/sellform/SellDispatch'
import ChangePrice from '@/components/sellform/ChangePrice'
import CustomerEdit from '@/components/sellform/CustomerEdit'
import ConfirmFare from '@/components/sellform/ConfirmFare'
import AddAddress from '@/components/sellform/AddAddress'
import AddressList from '@/components/sellform/AddressList'
import PickingList from '@/components/produce/PickingList'
import ViewPickingList from '@/components/produce/ViewPickingList'
import AddPickingList from '@/components/produce/AddPickingList'
import ApplyStoreRm from '@/components/produce/ApplyStoreRm'
import ApplyScrap from '@/components/produce/ApplyScrap'
import FeedStoreRm from '@/components/produce/FeedStoreRm'
import OutStoreRm from '@/components/produce/OutStoreRm'
import ApplyStoreRmList from '@/components/produce/ApplyStoreRmList'
import ProduceplanList from '@/components/produce/ProduceplanList'
import ViewPlan from '@/components/produce/ViewPlan'
import AddProduceplan from '@/components/produce/AddProduceplan'
import AddMaterialRetApply from '@/components/produce/AddMaterialRetApply'
import OutData from '@/components/produce/OutData'
import SureMaterialRetApply from '@/components/produce/SureMaterialRetApply'
import ViewApplyStoreRmList from '@/components/produce/ViewApplyStoreRmList'
import CountStock from '@/components/produce/CountStock'
import AddScrap from '@/components/produce/AddScrap'
import ScrapList from '@/components/produce/ScrapList'
import ViewScrap from '@/components/produce/ViewScrap'
import Examine from '@/components/produce/Examine'
import Examine5 from '@/components/produce/Examine5'
import Examine6 from '@/components/produce/Examine6'
import Examine7 from '@/components/produce/Examine7'
import Examine13 from '@/components/harvest/Examine13'
import ConfirmChangeContractPrice from '@/components/harvest/ConfirmChangeContractPrice'
import AddChangesa from '@/components/produce/AddChangesa'
import ChangesaList from '@/components/produce/ChangesaList'
import ScrapOutStoreRm from '@/components/produce/ScrapOutStoreRm'
import AddPurchasecontract from '@/components/sellform/AddPurchasecontract'
import PurchasecontractList from '@/components/sellform/PurchasecontractList'
import UpdPurchasecontract from '@/components/sellform/UpdPurchasecontract'
import ChangesaOutStoreRm from '@/components/produce/ChangesaOutStoreRm'
import ChangesaFeedStoreRm from '@/components/produce/ChangesaFeedStoreRm'
import AddFirstcostData from '@/components/produce/AddFirstcostData'
import AddFirstcostData2 from '@/components/produce/AddFirstcostData2'
import AddFirstcostData3 from '@/components/produce/AddFirstcostData3'
import AddFirstcostData4 from '@/components/produce/AddFirstcostData4'
import ChangeCostPriceList from '@/components/produce/ChangeCostPriceList'
import AddChangeCostPrice from '@/components/produce/AddChangeCostPrice'
import AddCostPriceGuide from '@/components/produce/AddCostPriceGuide'
import CountProfit from '@/components/produce/CountProfit'
import ProductionReport from '@/components/produce/ProductionReport'
import CommonExamine from '@/components/produce/CommonExamine'
import AddTransferApply from '@/components/produce/AddTransferApply'
import TransferApplyList from '@/components/produce/TransferApplyList'
import TransferOutStoreRm from '@/components/produce/TransferOutStoreRm'
import TransferFeedStoreRm from '@/components/produce/TransferFeedStoreRm'
import ViewTransferapply from '@/components/produce/ViewTransferapply'
import AddChangeContractPrice from '@/components/harvest/AddChangeContractPrice'
import ChangeContractPriceList from '@/components/harvest/ChangeContractPriceList'
import ViewChangeContractPrice from '@/components/harvest/ViewChangeContractPrice'


Vue.use(Router)

export default new Router({
  //mode: 'history',
  //base: 'vuecode',
  routes: [
    {
      path: '/sellform/list',
      name: 'Sellform',
      component: Sellform
    },
    {
      path: '/sellform/add',
      name: 'AddSellform',
      component: AddSellform
    },
    {
      path: '/sellform/view',
      name: 'ViewSellform',
      component: ViewSellform
    },
    {
      path: '*',
      name: 'Test',
      component: Test,
    },
    {
      path: '/sellform/sendCar',
      name: 'SendCar',
      component: SendCar,
    },
    {
      path: '/sellform/editLine',
      name: 'EditLine',
      component: EditLine,
    },
    {
      path: '/sellform/sellFinalSure',
      name: 'SellFinalSure',
      component: SellFinalSure,
    },
    {
      path: '/sellform/outstore',
      name: 'OutStoreRoom',
      component: OutStoreRoom,
    },
    {
      path: '/sellform/sellDispatch',
      name: 'SellDispatch',
      component: SellDispatch,
    },
    {
      path: '/sellform/changePrice',
      name: 'ChangePrice',
      component: ChangePrice,
    },
    {
      path: '/sellform/customerEdit',
      name: 'CustomerEdit',
      component: CustomerEdit,
    },
    {
      path: '/sellform/confirmfare',
      name: 'ConfirmFare',
      component: ConfirmFare,
    },
    {
      path: '/sellform/addaddress',
      name: 'AddAddress',
      component: AddAddress,
    },
    {
      path: '/sellform/address',
      name: 'AddressList',
      component: AddressList,
    },
    {
      path: '/produce/pickinglist',
      name: 'PickingList',
      component: PickingList,
      meta: {
        title:"领料单",
      }
    },
    {
      path: '/produce/viewpickinglist',
      name: 'ViewPickingList',
      component: ViewPickingList,
      meta: {
        title:"领料单",
      }
    },
    {
      path: '/produce/addpickinglist',
      name: 'AddPickingList',
      component: AddPickingList,
      meta: {
        title:"领料单",
      }
    },
    {
      path: '/produce/applystorerm',
      name: 'ApplyStoreRm',
      component: ApplyStoreRm,
      meta: {
        title:"入库申请单",
      }
    },
    {
      path: '/produce/feedstorerm',
      name: 'FeedStoreRm',
      component: FeedStoreRm,
      meta: {
        title:"入库申请单",
      }
    },
    {
      path: '/produce/outstorerm',
      name: 'OutStoreRm',
      component: OutStoreRm,
      meta: {
        title:"领料单",
      }
    },
    {
      path: '/produce/applystorermlist',
      name: 'ApplyStoreRmList',
      component: ApplyStoreRmList,
      meta: {
        title:"入库申请单",
      }
    },
    {
      path: '/produce/produceplanlist',
      name: 'ProduceplanList',
      component: ProduceplanList,
      meta: {
        title:"生产计划",
      }
    },
    {
      path: '/produce/addproduceplan',
      name: 'AddProduceplan',
      component: AddProduceplan,
      meta: {
        title:"生产计划",
      }
    },
    {
      path: '/produce/addMaterialRetApply',
      name: 'AddMaterialRetApply',
      component: AddMaterialRetApply,
      meta: {
        title:"退料申请单",
      }
    },
    {
      path: '/produce/outData',
      name: 'OutData',
      component: OutData,
      meta: {
        title:"退料申请单",
      }
    },
    {
      path: '/produce/sureMaterialRetApply',
      name: 'SureMaterialRetApply',
      component: SureMaterialRetApply,
      meta: {
        title:"退料申请单",
      }
    },
    {
      path: '/produce/applyscrap',
      name: 'ApplyScrap',
      component: ApplyScrap,
      meta: {
        title:"领料单",
      }
    },
    {
      path: '/produce/viewApplyStoreRmList',
      name: 'ViewApplyStoreRmList',
      component: ViewApplyStoreRmList,
      meta: {
        title:"入库单详情",
      }
    },
    {
      path: '/produce/countstock',
      name: 'CountStock',
      component: CountStock,
      meta: {
        title:"统计",
      }
    },
    {
      path: '/produce/addscrap',
      name: 'AddScrap',
      component: AddScrap,
      meta: {
        title:"报废单",
      }
    },
    {
      path: '/produce/scraplist',
      name: 'ScrapList',
      component: ScrapList,
      meta: {
        title:"报废单",
      }
    },
    {
      path: '/produce/examine',
      name: 'Examine',
      component: Examine,
      meta: {
        title:"报废单",
      }
    },
    {
      path: '/produce/examine5',
      name: 'Examine5',
      component: Examine5,
      meta: {
        title:"入库申请单",
      }
    },
    {
      path: '/produce/examine6',
      name: 'Examine6',
      component: Examine6,
      meta: {
        title:"领料单",
      }
    },
    {
      path: '/produce/examine7',
      name: 'Examine7',
      component: Examine7,
      meta: {
        title:"土豆集",
      }
    },
    {
      path: '/produce/CommonExamine',
      name: 'CommonExamine',
      component: CommonExamine,
      meta: {
        title:"销售订单",
      }
    },
    {
      path: '/produce/addchangesa',
      name: 'AddChangesa',
      component: AddChangesa,
      meta: {
        title:"库存调整",
      }
    },
    {
      path: '/produce/changesalist',
      name: 'ChangesaList',
      component: ChangesaList,
      meta: {
        title:"库存调整",
      }
    },
    {
      path: '/produce/scrapoutstoreRm',
      name: 'ScrapOutStoreRm',
      component: ScrapOutStoreRm,
      meta: {
        title:"报废单",
      }
    },
    {
      path: '/produce/addPurchasecontract',
      name: 'AddPurchasecontract',
      component: AddPurchasecontract,
      meta: {
        title:"新增采购合同",
      }
    },
    {
      path: '/produce/purchasecontractList',
      name: 'PurchasecontractList',
      component: PurchasecontractList,
      meta: {
        title:"采购合同信息",
      }
    },
    {
      path: '/produce/updPurchasecontract',
      name: 'UpdPurchasecontract',
      component: UpdPurchasecontract,
      meta: {
        title:"修改采购合同",
      }
    },
    {
      path: '/produce/changesaoutstorerm',
      name: 'ChangesaOutStoreRm',
      component: ChangesaOutStoreRm,
      meta: {
        title:"库存调整",
      }
    },
    {
      path: '/produce/changesafeedstorerm',
      name: 'ChangesaFeedStoreRm',
      component: ChangesaFeedStoreRm,
      meta: {
        title:"库存调整",
      }
    },
    {
      path: '/produce/AddFirstcostData',
      name: 'AddFirstcostData',
      component: AddFirstcostData,
      meta: {
        title:"成本数据",
      }
    },
    {
      path: '/produce/changecostpricelist',
      name: 'ChangeCostPriceList',
      component: ChangeCostPriceList,
      meta: {
        title:"成本价格维护",
      }
    },
    {
      path: '/produce/AddChangeCostPrice',
      name: 'AddChangeCostPrice',
      component: AddChangeCostPrice,
      meta: {
        title:"成本价格维护单",
      }
    },
    {
      path: '/produce/AddCostPriceGuide',
      name: 'AddCostPriceGuide',
      component: AddCostPriceGuide,
      meta: {
        title:"成本数据记录",
      }
    },
    {
      path: '/produce/CountProfit',
      name: 'CountProfit',
      component: CountProfit,
      meta: {
        title:"生产日报",
      }
    },
    {
      path: '/produce/ProductionReport',
      name: 'ProductionReport',
      component: ProductionReport,
      meta: {
        title:"生产日报",
      }
    },
    {
      path: '/produce/AddFirstcostData2',
      name: 'AddFirstcostData2',
      component: AddFirstcostData2,
      meta: {
        title:"成本数据",
      }
    },
    {
      path: '/produce/AddFirstcostData3',
      name: 'AddFirstcostData3',
      component: AddFirstcostData3,
      meta: {
        title:"成本数据",
      }
    },
    {
      path: '/produce/AddFirstcostData4',
      name: 'AddFirstcostData4',
      component: AddFirstcostData4,
      meta: {
        title:"成本数据",
      }
    },
    {
      path: '/produce/ViewScrap',
      name: 'ViewScrap',
      component: ViewScrap,
      meta: {
        title:"报废单",
      }
    },
    {
      path: '/produce/ViewPlan',
      name: 'ViewPlan',
      component: ViewPlan,
      meta: {
        title:"生产计划",
      }
    },
    {
      path: '/produce/AddTransferApply',
      name: 'AddTransferApply',
      component: AddTransferApply,
      meta: {
        title:"土豆集",
      }
    },
    {
      path: '/produce/TransferApplyList',
      name: 'TransferApplyList',
      component: TransferApplyList,
      meta: {
        title:"土豆集",
      }
    },
    {
      path: '/produce/TransferOutStoreRm',
      name: 'TransferOutStoreRm',
      component: TransferOutStoreRm,
      meta: {
        title:"土豆集",
      }
    },
    {
      path: '/produce/TransferFeedStoreRm',
      name: 'TransferFeedStoreRm',
      component: TransferFeedStoreRm,
      meta: {
        title:"土豆集",
      }
    },
   {
      path: '/produce/ViewTransferapply',
      name: 'ViewTransferapply',
      component: ViewTransferapply,
      meta: {
        title:"土豆集",
      }
    },
   {
      path: '/harvest/ChangeContractPriceList',
      name: 'ChangeContractPriceList',
      component: ChangeContractPriceList,
      meta: {
        title:"采收合同",
      }
    },
   {
      path: '/harvest/AddChangeContractPrice',
      name: 'AddChangeContractPrice',
      component: AddChangeContractPrice,
      meta: {
        title:"采收合同",
      }
    },
   {
      path: '/harvest/ViewChangeContractPrice',
      name: 'ViewChangeContractPrice',
      component: ViewChangeContractPrice,
      meta: {
        title:"采收合同",
      }
    },
   {
      path: '/harvest/ConfirmChangeContractPrice',
      name: 'ConfirmChangeContractPrice',
      component: ConfirmChangeContractPrice,
      meta: {
        title:"采收合同",
      }
    },
   {
      path: '/harvest/Examine13',
      name: 'Examine13',
      component: Examine13,
      meta: {
        title:"采收合同",
      }
    },



  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})
